import { sendRequest } from '@/http';

export function updateElder(data: any) {
  return sendRequest({
    url: `/elder/updateElder`,
    method: 'post',
    data,
  });
}

export function createElder(data: any) {
  return sendRequest({
    url: `/elder/createElder`,
    method: 'post',
    data,
  });
}

export function queryElders(params: any) {
  return sendRequest({
    url: `/elder/queryElders`,
    method: 'get',
    params,
  });
}

export function deleteElder(elderId: string) {
  return sendRequest({
    url: `/elder/deleteElder`,
    method: 'post',
    data: { elderId },
  });
}
